package com.winter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.winter.model.FinDepositReceipt;

@Repository
public interface FinDepositReceiptMapper {

    int deleteByPrimaryKey(Long id);

    int insert(FinDepositReceipt record);

    int insertSelective(FinDepositReceipt record);

    FinDepositReceipt selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FinDepositReceipt record);

    int updateByPrimaryKey(FinDepositReceipt record);

    List<FinDepositReceipt> selectList(@Param("direct") String direct, @Param("rating") String rating, @Param("deadline") String deadline, @Param("rate") String rate, @Param("userNo") String userNo, @Param("sortName") String sortName, @Param("sort") String sort, @Param("key") String key);

    void updateCount(String subtract, String likeType, Long id);

    List<FinDepositReceipt> queryUserNo(@Param("userNo") String userNo);

    FinDepositReceipt selectByIdKey();
}